package com.example.smartcity_poverty.ui.poverty.adapter

import com.example.smartcity_poverty.Base.BaseRecyclerAdapter
import com.example.smartcity_poverty.ui.poverty.model.PtThreeEntity
import kotlinx.android.synthetic.main.re_item_poverty_three.*

/**
 *  created by ikun
 *  ANDROID STUDIO - version 4.0
 *  email: jinkunwei41@gmail.com
 * --------------------------------
 *
 **/
class PtThreeAdapter(
    val list: MutableList<PtThreeEntity>,
    private val layoutId: Int
) : BaseRecyclerAdapter<PtThreeEntity>(list, layoutId) {
    override fun setData(
        view: BaseViewHolder.ViewFind,
        data: PtThreeEntity,
        position: Int,
        holder: BaseViewHolder
    ) {
        if (list.size <= 0){

        }else{
            val d = list[position]
            holder.viewFind.threeImageView.setImageResource(d.threeImage)
            holder.viewFind.threeTv1.text = d.threeTitle
            holder.viewFind.threeTv2.text = d.threeContent
        }

    }


}